package Case01.example04;

public class FruitTest {
    public static void main(String[] args) {

        Fruit fruit = new Fruit();
        fruit.setName("苹果");
        fruit.setArea("昭通");
        fruit.setPrice(5);
        System.out.println(fruit);


        Fruit fruit1 = new Fruit();
        fruit1.setName("草莓");
        fruit1.setArea("昆明");
        fruit1.setPrice(10);
        System.out.println(fruit1);


        Fruit fruit2 = new Fruit();
        fruit2.setName("葡萄");
        fruit2.setArea("昆明");
        fruit2.setPrice(6);
        System.out.println(fruit2);


    }
}
